<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>三维</title>
		<style type="text/css">
			body{
				perspective: 1000px;	/* 透视 */
				perspective-origin: 50% 50%;
			}
			div{
				width: 400px;
				height: 400px;
			}
			.box1{
				/* 开启3D的空间效果 */
				transform-style: preserve-3d;
				margin: 200px auto;
				background-color: rgba(0, 255, 255, 0.4);
			}
			.box2{
				background-color: antiquewhite;
				transform: rotateX(45deg);
			}
		</style>
	</head>
	<body>
	<div class="box1">
		<div class="box2"></div>
	</div>
	
	</body>
</html>
